{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
$(document).ready(function(){
	//calculateQuantity();
	//calculateWeight();
});

</script>
{/block}
{block name=body}
<form name="createBill" action="bill.php" method="POST">
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td colspan="14" class="table1" align="center"><font size="3">Inward / Outward Register</font></td>
</tr>	
<tr>
  <td  class="table1" align='center' ><b>Detail</b></td>
  <td  class="table1" align='center' ><b>Party</b></td>
  <td  class="table1" align='center' ><b>Out. Challan</b></td>
  <td  class="table1" align='center' ><b>Date</b></td>
  <td  class="table1" align='center' ><b>Inc. Challan</b></td>
  <td  class="table1" align='center' ><b>Process1</b></td>
  <td  class="table1" align='center' ><b>Process2</b></td>
  <td  class="table1" align='center' ><b>Process3</b></td>
  <td  class="table1" align='center' ><b>Material</b></td>
  <td  class="table1" align='center' ><b>Hardne</b></td>
  <td  class="table1" align='center' ><b>Quantity</b></td>
  <td  class="table1" align='center' ><b>Out Quantity</b></td>
  <td  class="table1" align='center' ><b>Weight</b></td>
  <td  class="table1" align='center' ><b>Out Weight</b></td>
  <td  class="table1" align='center' ><b></b></td>
  </tr>
{section name="sec" loop=$incomingRegister}
<tr>
	  <td class="table2" align="center">
      <a href="#">Detail</a>
    </td>
    <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].partyName}</td>
    <td class="table2" align="center">{$incomingRegister[sec].outChallenNo}</td>
    <td class="table2" align="left" NOWRAP>{$incomingRegister[sec].date}</td>
    <td class="table2" align="center">{$incomingRegister[sec].challan}</td>
    <td class="table2" align="left"NOWRAP>{$incomingRegister[sec].processName1}</td>
    <td class="table2" align="left"NOWRAP>{$incomingRegister[sec].processName2}</td>
    <td class="table2" align="left"NOWRAP>{$incomingRegister[sec].processName3}</td>
    <td class="table2" align="center">{$incomingRegister[sec].material}</td>
    <td class="table2" align="center"NOWRAP>{$incomingRegister[sec].hardne}</td>
    <td class="table2" align="right">{$incomingRegister[sec].qty}</td>
    <td class="table2" align="right">{$incomingRegister[sec].outQuantity}</td>
    <td class="table2" align="right">{$incomingRegister[sec].weight}</td>
    <td class="table2" align="right">{$incomingRegister[sec].outWeight}</td>
    <td class="table2" align="center">
  	<a href="shaktiPdf1.php?outChallenNo={$incomingRegister[sec].outChallenNo}" target="_blank">Print</a>
  </td>
  </td>
</tr>
{sectionelse}
<tr>
	<td align="center" colspan="13">
   {$msg}
  </td>
</tr> 
{/section}
</table>
</form>
{/block}